package com.booksystem.campuslibrarymanagementsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.booksystem.campuslibrarymanagementsystem.entity.BooksTable;
import com.booksystem.campuslibrarymanagementsystem.entity.UserTable;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BooksTableService extends IService<BooksTable> {
    BooksTable queryById(int bookid);

    boolean upDataBook(int bookid, String title, String author, String category);

    List<BooksTable> selectBybooktitle(String title);

    BooksTable queryByTitle(String title);


    boolean deleteByBookid(int bookid);

    BooksTable selectLastBookid();

    List<BooksTable> selectList(int bookid, String title, String author, String category);

    boolean AddBook(int bookid, int totalcopies);


    BooksTable add(int bookid);

    List<BooksTable> selectbookList( String title, String author, String category);


    List<BooksTable> queryByCategory(String category);

}
